package jsproto.c2s.cclass;

import lombok.Data;

import java.util.List;

@Data
public class RoomEndResult<T> extends BaseSendMsg {
	private long roomId;
	private String key;
	private int setId;
	private int endTime;
	private long ownerID;
	private List<T> resultsList; // 斗地主名字叫countRecords
	private int newSetID;//显示的setID 用于连庄局数不增加 但是后台要记录的情况

	public void clear() {
		// 清空解算历史
		if (null != this.resultsList) {
			this.resultsList.clear();
			this.resultsList = null;
		}
	}

	@Override
	public String toString() {
		return "RoomEndResult{" +
				"roomId=" + roomId +
				", key='" + key + '\'' +
				", setId=" + setId +
				", endTime=" + endTime +
				", ownerID=" + ownerID +
				", resultsList=" + resultsList +
				'}';
	}
}
